LOCAL_SRC_DIR = $(shell pwd)

LINK    = @echo linking $@ && g++
GCC     = @echo compiling $@ && g++ 
GC      = @echo compiling $@ && gcc
AR      = @echo generating static library $@ && ar -crv
FLAGS   = -g -W -w -Wall -fPIC -std=c++11 -Wno-unused-parameter


GCCFLAGS = 
DEFINES = 
HEADER  = -I./ -I/usr/local/include/

LIBS    = -L./ -L/usr/local/lib

LINKFLAGS =  -DDEBUG 

CURRENT_TIME   = $(shell date "+%Y%m%d%H%M%S")

LIBS    += -pthread  

SOURCE_FILES :=\
		main.cpp\
		uart.cpp\

PROJECTNAME = FiboConsole

TARGET = main

all: $(SOURCE_FILES)
	$(LINK) $(FLAGS) $(LINKFLAGS) -o ${PROJECTNAME}.out $^ $(LIBS) ${HEADER}
clean:
	rm -rf *.o *.out* bin obj *.db *.txt output.jpg output.wav *.bin
del:
	rm -rf *
